/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.team1160.breakaway.input;

import com.team1160.breakaway.api.Constants;
import edu.wpi.first.wpilibj.Joystick;
import java.util.Hashtable;

/**
 *
 * @author Saketh Kasibatla
 */
public class UserInput implements UserInputtable{
    Joystick drive = new Joystick(Constants.DRIVE_JOYSTICK_CHANNEL);

    public Hashtable getButtons() {
        Hashtable buttons = new Hashtable();
        for(int i=1;i<13;i++)
            buttons.put(new Integer(i),new Boolean(drive.getRawButton(i)));
        return buttons;
    }

    public Hashtable getDriveAxes() {
        Hashtable axes = new Hashtable();
        axes.put(Constants.X_AXIS_C, new Double(drive.getRawAxis(Constants.X_AXIS)));
        axes.put(Constants.Y_AXIS_C, new Double(drive.getRawAxis(Constants.Y_AXIS)));
        return axes;
    }
    
    


}
